<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Handlers\WeconHandler;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;

class DedustingUser extends Model
{
    protected $table = 'xfy_dedusting_users';
    protected $fillable = ['openid', 'nickname'];

    public function devices()
    {
        return $this->hasMany(DedustingDevice::class, 'bind_user_id', 'id');
    }
}